/**
 *  by tangjk
 */

window.CardLove = window.CardLove || {};

CardLove.Role = function(){

    //角色名称
    this.name = "";

    //角色类型（0：自己，1：敌方）
    this.type = 1;

    //角色当前游戏牌的数组
    this.cards = new Array();

    //角色当前游戏的分数
    this.score = 0;

    //每回合选择的牌子card对象
    this.pickedCard = null;


};


/**
 *  角色开始游戏入口
 *
  */
CardLove.Role.prototype.start = function(){};

/**
 *  游戏牌排序
 */
CardLove.Role.prototype.sortCard = function(sources,target){

};


/**
 *  选择游戏牌
 */
CardLove.Role.prototype.pickerCard = function(card){
    this.pickedCard = card;
};

/**
 *  游戏开始，获取新cards
 */
CardLove.Role.prototype.getCards = function(cards){
    this.cards = cards;
};

/**
 * 设置分数对象
 * @param s
 */
CardLove.Role.prototype.setScore = function(s){
    this.score = s;
};
/**
 * 获取角色的分数
 */
CardLove.Role.prototype.getScore = function(){
    return this.score;
};


/**
 * 初始化角色对象
 */
CardLove.Role.initRole = function(){
    var role = new CardLove.Role();
    role.score = new CardLove.score.initScore();
    return role;
};